<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改项目</title>
    <!-- 引入Bootstrap CSS -->
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
    <!-- 引入Bootstrap Datepicker CSS -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css" rel="stylesheet">
    <!-- 引入Rich Text Editor CSS -->
    <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.css" rel="stylesheet">

    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.js"></script>
</head>
<body>
<div class="container">
    <h2 class="mt-5" style="text-align: center;">修改项目</h2>

    <form action="updateproject" method="post" onsubmit="return validateForm() " accept-charset="UTF-8">
        <div class="form-group">
            <label for="protectId">项目ID:</label>
            <input type="text" class="form-control" id="protectId" name="protectId" value="${project.protectId}" readonly>
        </div>

        <div class="form-group">
            <label for="projectName">项目名称:</label>
            <input type="text" class="form-control" id="projectName" name="projectName" value="${project.projectName}" required>
        </div>

        <div class="form-group">
            <label for="postId">导师ID:</label>
            <input type="text" class="form-control" id="postId" name="postId" value="${project.postId}" readonly>
        </div>

        <div class="form-group">
            <label for="postName">导师名称:</label>
            <input type="text" class="form-control" id="postName" name="postName" value="${project.postName}" required>
        </div>

        <div class="form-group">
            <label for="type">类型:</label>
            <input type="text" class="form-control" id="type" name="type" value="${project.type}" required>
        </div>
        <div class="form-group">
            <label for="postId">项目状态:</label>
            <input type="text" class="form-control" id="status" name="status" value="${project.status}" readonly>
        </div>
        <div class="form-group">
            <label for="startTime">开始时间:</label>
            <input type="text" class="form-control" id="startTime" name="startTime" value="${project.startTime}" required>
        </div>

        <div class="form-group">
            <label for="endTime">结束时间:</label>
            <input type="text" class="form-control" id="endTime" name="endTime" value="${project.endTime}" required>
        </div>

        <div class="form-group" >
            <label for="members">成员:</label>
            <input type="text" class="form-control" id="members" name="members" value="${project.members}" required>
        </div>

        <div class="form-group">
            <label for="description">项目描述:</label>
            <textarea class="form-control" id="description" name="description">${project.description}</textarea>
        </div>

        <button type="submit" class="btn btn-primary" style="margin-left:40%; width: 20%;">保存</button>
        <a href="manager_queryAllProjects.jsp" class="btn btn-secondary" style="width: 20%;">返回</a>
    </form>
</div>
</body>
</html>
